/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.delaphone.flocash.web.action;

import com.delaphone.flocash.model.FBanks;
import com.delaphone.flocash.service.BankService;
import com.opensymphony.xwork2.Action;
import java.util.List;

/**
 *
 * @author tamdx
 */
public class ManageBankAction extends BaseAction {

    private List<FBanks> listBank;
    private BankService bankService;

    public String index() {
        if (user == null) {
            return Action.ERROR;
        }
        listBank = bankService.ListBankByUserId(user.getId());
        return Action.SUCCESS;
    }

    public List<FBanks> getListBank() {
        return listBank;
    }

    public void setListBank(List<FBanks> listBank) {
        this.listBank = listBank;
    }

    public BankService getBankService() {
        return bankService;
    }

    public void setBankService(BankService bankService) {
        this.bankService = bankService;
    }



    
}
